package com.zmn.oms.business.interfaces.grid;

import com.zmn.oms.common.dio.schedule.GridGroupScheduleCheckDIO;
import com.zmn.oms.model.bo.work.schedule.GridGroupScheduleBO;
import com.zmn.oms.common.dro.schedule.GridGroupScheduleCheckDRO;
import com.zmn.oms.model.dto.work.schedule.WorkOrderScheduleQuery;

import java.util.List;

/**
 * 类描述: 网格组派单
 *
 * @author: HuangChao
 * @since: 2022/04/14 19:01
 */
public interface GridGroupDistributeBService {

    /**
     * 校验网格组查询当天是否可服务
     * @param query
     * @return
     */
    Boolean checkGridGroupTodayAvailable(WorkOrderScheduleQuery query);


    /**
     * 获取网格组七天内首次可服务日期
     * @param query
     * @return
     */
    GridGroupScheduleBO getGridGroupFirstAvailableDates(WorkOrderScheduleQuery query);

    /**
     * 批量查询网格组是否有可服务工程师
     * @param gridGroupScheduleCheckList
     * @return
     */
    List<GridGroupScheduleCheckDRO> listGridGroupAvailableEngineer(List<GridGroupScheduleCheckDIO> gridGroupScheduleCheckList);

}
